package moe.bogos.douro.api.common;

import net.minecraft.nbt.CompoundNBT;

public abstract class AgedSoul implements Aged
{

    protected int year;

    public AgedSoul(int year)
    {
        this.year = year;
    }

    public CompoundNBT writeToNbt()
    {
        CompoundNBT nbt = new CompoundNBT();
        nbt.putInt(Constants.YEAR, year);
        return nbt;
    }

    public void setAge(int age)
    {
        this.year = age;
    }

    public int getAge()
    {
        return this.year;
    }
}
